package com.market.mapper;

import com.market.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderDetailMapper {
    //增加订单详情记录
    boolean addOrderDetail(OrderDetail orderDetail);

    //详情id查询订单详情
    OrderDetail queryOrderDetail(int orderDetailId);


    //订单id查询订单详情
    List<OrderDetail> queryOrderDetailByOrderId(int orderId);

    //查询某个商品当日的购买量
    List<OrderDetail> GoodsAllBuyAmount(int goodsId, String payTime);
}
